function showImg(voucher_picid){
	var data = voucher_picid.split(',');
	showImgForFina(data);
}
//财务看上传的图片
function showImgForFina(data){
	$('#settleWithholdFinanceFrm #uploadPic').empty();
	$.each(data,function(index,item){
		var $div = $('<div></div>');
		var $img = $('<img/>');
		var url = "/sms/fileUtil/showImg/";
		$img.attr({
			"data-id":item,
			"data-large-url":ctx+url+item,
			"src":ctx+url+item+"",
			"data-large-content":"交易凭证",
			"title":"点击查看大图"
		});
		$img.addClass('img-thumbnail imgFloat');
		$div.addClass('col-md-4');
		$div.append($img);
		//财务
		$('#settleWithholdFinanceFrm #uploadPic').append($div);
		$img.zuiLightBox();
	});
}

function upRepaySuc(data){
	if(data.success == true){
		new $.zui.Messager('修改成功!', {
		    type: 'success',
		    time: 2000,
		    placement:'center'
		}).show();
		MsgBox.closeActiveDialog();
		RepayRecordTable.refresh();
	}
}

function caiwuState(){
	$('#settleWithholdFinanceFrm select[name="dk_status"]')
		.find('option').each(function(){
			var value = $(this).attr('value');
			switch(value){
			case '038001':
				break;
			case '038003':
				break;
			default:
				$(this).remove();
			}
		});
	$('#settleWithholdFinanceFrm select[name="dk_status"]').val('038003');
}

function unrecordAjaxSucc(data){//未入账记录成功
	if(data.success == true){
		if(data.info.data && data.info.data.length == 0){//没有未入账信息
			updatePubRepayStatus();
		}else{//有未入账信息
			new $.zui.Messager('存在未入账信息，提交失败!', {
			    type: 'success',
			    time: 2000,
			    placement:'center'
			}).show();
			return false;
		}
	}else{
		new $.zui.Messager('系统异常!', {
		    type: 'success',
		    time: 2000,
		    placement:'center'
		}).show();
		return false;
	}
}

